package com.diandian.backend.order.mapper;

import com.diandian.backend.order.domain.OrderOffline;
import com.diandian.backend.order.dto.OrderOfflineAddParamDTO;
import com.diandian.backend.order.dto.OrderOfflineDeleteByIdParamDTO;
import com.diandian.backend.order.dto.OrderOfflineDetailParamDTO;
import com.diandian.backend.order.dto.OrderOfflineUpdateByIdParamDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface OrderOfflineMapper {

    // 查询详情
    OrderOffline getDetail(@Param("data") OrderOfflineDetailParamDTO requestDTO);

    // 根据数据id更新记录
    void updateById(@Param("data") OrderOfflineUpdateByIdParamDTO param);

    // 根据数据id删除记录
    void deleteById(@Param("data") OrderOfflineDeleteByIdParamDTO param);

    // 新增
    void add(@Param("data") OrderOfflineAddParamDTO param);

}